package se.webbzon.oschi01.nbt;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

import se.webbzon.oschi01.singleton.Singleton;
import se.webbzon.oschi01.singleton.Singletons;

public class EndTagFactory extends AbstractTagFactory<Object> implements Singleton {

	private EndTagFactory() {
		super(Tags.TAG_END, "TAG_End", true);
	}

	@Override public EndTag readTag(String tagName, DataInputStream is) throws IOException {
		return Singletons.instance(EndTag.class);
	}

	@Override public void writeTag(Tag<Object> tag, DataOutputStream dos) throws IOException {}

	@Override public Tag<Object> createTag(String tagName) {
		return Singletons.instance(EndTag.class);
	}

}
